<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="../../generales/plantillas/plantillaMain.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:panel id="formEgresos" header="#{msg['form.titleEgresos']}" style="margin-bottom:10px;">
				<h:panelGrid columns="3">
				
						<h:outputLabel value="#{msg['form.egresos.tipo']} *" />				
						<p:selectOneMenu id="conceptoEgreso" value="" required="true">
							<f:selectItem itemValue="" itemLabel="Seleccione..."/>
							<f:selectItems value="#{conceptoEgresoBean.conceptosEgreso}" var="conceptosEgreso" itemValue="#{conceptosEgreso.codigo}" itemLabel="#{conceptosEgreso.descripcion}"/>
						</p:selectOneMenu>
						<p:message for="conceptoEgreso" />						
				
						<h:outputLabel value="#{msg['form.egresos.valor']} *" />				
						<p:inputText id="montoEgreso" value="" required="true" >
							<f:validateLength maximum="15" />
						</p:inputText>
						<p:message for="montoEgreso" />
						
						<h:outputLabel value="#{msg['form.egresos.fecha']} *" />				
						<p:calendar value="#{calendarBean.date2}" id="popupCal2" pattern="yyyy/MM/dd HH:mm:ss" size="18" />
						<p:message for="popupCal2" />
						
				</h:panelGrid>
				
				<h:panelGrid columns="1" style="align:center;">
					<h:outputLabel value="#{msg['form.egresos.comentarios']} *" />
					<p:inputTextarea id="comentarios" required="true" cols="40" rows="10">
							<f:validateLength maximum="100" />
					</p:inputTextarea>
					<p:message for="comentarios" />
				</h:panelGrid>				
				
				<h:panelGrid columns="1" style="align:center;">
					<p:commandButton value="#{msg['form.egresos.enviar']}" />				
				</h:panelGrid>
				
			</p:panel>						
		</h:form>
	</ui:define>	
</ui:composition>